package com.kmair.caiwu.configuration;

import com.kmair.caiwu.activiti.configuration.ActivitiRootConfig;
import com.kmair.caiwu.attendance.configuration.AttendanceRootConfig;
import com.kmair.caiwu.financialexpress.configuration.FERootConfig;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

public class SpringMVCInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {

    @Override //导入其他配置文件
    protected Class<?>[] getRootConfigClasses() {
        return new Class<?>[]{FERootConfig.class, AttendanceRootConfig.class, ActivitiRootConfig.class};
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class<?>[]{WebConfig.class};
    }

    @Override
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }
}
